import reg from '@/regular/index'

export function regHttps(data) {
  return reg.https.test(data)
}

export function regPrice(data) {
  return reg.price.test(data)
}

export function regPriceMinuss(data) {
  return reg.priceMinus.test(data)
}

export function regPhone(data) {
  return reg.phone.test(data)
}

export function regNumber(data) {
  return reg.numberInt.test(data)
}

export function regPassword(data, password = 'password') {
  return reg[password]['test'](data)
}
